<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86178
  Date: 2022/4/9
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/webjars/bootstrap/4.6.1/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/webjars/jquery/3.5.1/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/webjars/bootstrap/4.6.1/js/bootstrap.min.js"></script>
    <title>修改页面</title>
</head>
<body>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">修改页面</h3>
    </div>
    <div class="panel-body">
        <form action="/UpdateUserInfoServlet?id=1" method="post">
            <table class="table table-danger">
                <thead>
                <tr>
                    <th>用户名称</th>
                    <th>用户性别</th>
                    <th>用户地点</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <input name="userId" type="text" value="${userInfoById.id}">
                    <input name="userDate" type="text" value="${userInfoById.birthday}">
                    <td><input name="userName" type="text" class="form-control col-2" value="${userInfoById.username}">
                    </td>
                    <td><input name="userSex" type="text" class="form-control col-2" value="${userInfoById.sex}"></td>
                    <td><input name="userAdd" type="text" class="form-control col-2" value="${userInfoById.address}">
                    </td>
                    <td><input type="submit" value="确认修改"></td>
                    <td><a href="/userInfoServlet" class="ui-button">取消修改</a>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>
<h>${userInfoBuId.id}</h>
<h>${userInfoBuId.birthday}</h>
<h>${userInfoBuId.sex}</h>
</body>
</html>
